package com.dgac.publicresource.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SeckillVoucher {
    /**
     * 关联的优惠券id
     */
    private Long voucherId;

    /**
     * 秒杀开始时间
     */
    private LocalDateTime beginTime;

    /**
     * 秒杀结束时间
     */
    private LocalDateTime endTime;

    /**
     * 库存
     */
    private Integer stock;
}
